package model

import (
	"time"
)

type Apply struct {
	ID             int        `gorm:"primaryKey;autoIncrement;column:id"`
	Apply_ID       int        `gorm:"not null;column:apply_id"`
	UserID         int        `gorm:"not null;column:uid"`
	Kind           int        `gorm:"not null;column:kind"`
	Approval_State int        `gorm:"not null;column:approval_state"`
	Title          string     `gorm:"not null;column:title"`
	ApplyTime      time.Time  `gorm:"not null;column:apply_time"`
	Approver1      *int       `gorm:"column:approver1"`
	Approver2      *int       `gorm:"column:approver2"`
	Approver3      *int       `gorm:"column:approver3"`
	ApprovalDate1  *time.Time `gorm:"column:approval_date1"`
	ApprovalDate2  *time.Time `gorm:"column:approval_date2"`
	ApprovalDate3  *time.Time `gorm:"column:approval_date3"`
	Remark1        string     `gorm:"column:remark1"`
	Remark2        string     `gorm:"column:remark2"`
}
type Apply_to_User struct {
	ID             int
	Apply_ID       int
	UserID         int
	Kind           int
	Approval_State int
	Title          string
	ApplyTime      time.Time
	Approver1_Name string
	Approver2_Name string
	Approver3_Name string
	ApprovalDate1  *time.Time
	ApprovalDate2  *time.Time
	ApprovalDate3  *time.Time
}
